package com.kate.mall.order.feign;

import com.kate.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @Description: 用一句话描述
 * @Auther: 新梦想*陈超
 * @Date: 2021/11/3 22:21
 */
@FeignClient("coupon-center")
public interface CouponFeignClient {
    @GetMapping("/coupon/coupon/verify")
    R verifyCoupon(@RequestParam Map<String,Object> params);

    @GetMapping("/coupon/couponuser/info/{id}")
    R findById(@PathVariable("id") Integer userCouponId);

    @PutMapping(value = "/coupon/couponuser/update" )
    void update(@RequestBody Map couponUser);
}
